import requests

# 未开启代理
response = requests.get(url='https://ip.useragentinfo.com/json')

print(response.text)

# 开启代理
proxy_response = requests.get(url='http://ip.useragentinfo.com/json',proxies={'http':'http://114.232.110.123:8089'})
print(proxy_response.text)